auto-coder 0.1.215__py3-none-any.whl → 0.1.217__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of auto-coder might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto-coder
3
- Version: 0.1.215
3
+ Version: 0.1.217
4
4
  Summary: AutoCoder: AutoCoder
5
5
  Author: allwefantasy
6
6
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -38,6 +38,7 @@ Requires-Dist: azure-cognitiveservices-speech
38
38
  Requires-Dist: python-docx
39
39
  Requires-Dist: docx2txt
40
40
  Requires-Dist: pdf2image
41
+ Requires-Dist: Spire.Doc
41
42
  Requires-Dist: docx2pdf
42
43
  Requires-Dist: pyperclip
43
44
  Requires-Dist: colorama
@@ -1,14 +1,14 @@
1
1
  autocoder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  autocoder/auto_coder.py,sha256=fnm1dhTj5AidkYf65qt4XjrXZz0D3OrkHW8y7QOMjmQ,41765
3
3
  autocoder/auto_coder_lang.py,sha256=Rtupq6N3_HT7JRhDKdgCBcwRaiAnyCOR_Gsp4jUomrI,3229
4
- autocoder/auto_coder_rag.py,sha256=hU7NmCUIM__918p1RbGFlJKPVEqdr4NXjD6b1dBgEVU,21743
4
+ autocoder/auto_coder_rag.py,sha256=illKgzP2bv-Tq50ujsofJnOHdI4pzr0ALtfR8NHHWdQ,22351
5
5
  autocoder/auto_coder_server.py,sha256=XU9b4SBH7zjPPXaTWWHV4_zJm-XYa6njuLQaplYJH_c,20290
6
6
  autocoder/benchmark.py,sha256=Ypomkdzd1T3GE6dRICY3Hj547dZ6_inqJbBJIp5QMco,4423
7
- autocoder/chat_auto_coder.py,sha256=xg8o5Zh3Uhc9Cq4TeR2bCcyU7LiwSf8X0izyvQZyi8c,90725
7
+ autocoder/chat_auto_coder.py,sha256=9YKP4SvQjPrkNN_rCakPaXWCQWFXPvrR7DKH4gw-oIg,93871
8
8
  autocoder/chat_auto_coder_lang.py,sha256=ReWukXKVvuzVvpbYk5O9kc1ev7XNmAv3DnuQhmpLmnc,8717
9
- autocoder/command_args.py,sha256=BpMbPceBzjCftPB0yOVsSmTmt61xS3gtc1WGKtcDHQs,30449
9
+ autocoder/command_args.py,sha256=9aYJ-AmPxP1sQh6ciw04FWHjSn31f2W9afXFwo8wgx4,30441
10
10
  autocoder/lang.py,sha256=U6AjVV8Rs1uLyjFCZ8sT6WWuNUxMBqkXXIOs4S120uk,14511
11
- autocoder/version.py,sha256=IihUZg8cv9NkoKSCxqfNNkFfexYf5wMkv_LXnxQC11Q,24
11
+ autocoder/version.py,sha256=0-vnhNuH2D1UmiWFmbqXgCF2VQY1f7PpLtBG-hBuxTc,24
12
12
  autocoder/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  autocoder/agent/auto_demand_organizer.py,sha256=NWSAEsEk94vT3lGjfo25kKLMwYdPcpy9e-i21txPasQ,6942
14
14
  autocoder/agent/auto_filegroup.py,sha256=CW7bqp0FW1GIEMnl-blyAc2UGT7O9Mom0q66ITz1ckM,6635
@@ -23,21 +23,22 @@ autocoder/common/JupyterClient.py,sha256=O-wi6pXeAEYhAY24kDa0BINrLYvKS6rKyWe98pD
23
23
  autocoder/common/ShellClient.py,sha256=fM1q8t_XMSbLBl2zkCNC2J9xuyKN3eXzGm6hHhqL2WY,2286
24
24
  autocoder/common/__init__.py,sha256=Itx7HWrrMEMszf4hpUZ7YhIGbpWQVtJjQOWOEqRsa-Q,11458
25
25
  autocoder/common/anything2images.py,sha256=0ILBbWzY02M-CiWB-vzuomb_J1hVdxRcenAfIrAXq9M,25283
26
+ autocoder/common/anything2img.py,sha256=4TREa-sOA-iargieUy7MpyCYVUE-9Mmq0wJtwomPqnE,7662
26
27
  autocoder/common/audio.py,sha256=Kn9nWKQddWnUrAz0a_ZUgjcu4VUU_IcZBigT7n3N3qc,7439
27
28
  autocoder/common/buildin_tokenizer.py,sha256=L7d5t39ZFvUd6EoMPXUhYK1toD0FHlRH1jtjKRGokWU,1236
28
29
  autocoder/common/chunk_validation.py,sha256=BrR_ZWavW8IANuueEE7hS8NFAwEvm8TX34WnPx_1hs8,3030
29
30
  autocoder/common/cleaner.py,sha256=NU72i8C6o9m0vXExab7nao5bstBUsfJFcj11cXa9l4U,1089
30
31
  autocoder/common/code_auto_execute.py,sha256=4KXGmiGObr_B1d6tzV9dwS6MifCSc3Gm4j2d6ildBXQ,6867
31
- autocoder/common/code_auto_generate.py,sha256=_4LU0Oku5uF38yLgufE-cWQX9RkXDmDDJJs88k0d04o,9404
32
- autocoder/common/code_auto_generate_diff.py,sha256=_9f6eXKXePjskRmMtdJ3dfSoegJSS-C1-XLIVG4crQk,15295
33
- autocoder/common/code_auto_generate_editblock.py,sha256=2JfEWLPAQJCNQx1wHOEicv0XOdJgV5ilnjW2AFCD8Zs,16876
34
- autocoder/common/code_auto_generate_strict_diff.py,sha256=Qb4C_ZIkyJK0kffWqn72fdqhCS5ALwl9iaoYl_g4LDE,13821
32
+ autocoder/common/code_auto_generate.py,sha256=hPmsC7nLj-HNxKlPh2FJmmmN7UhtUWONgJ_V5dQXLtA,9485
33
+ autocoder/common/code_auto_generate_diff.py,sha256=kxzrOKklmCLhGfDrXJ84mkLawo2H6fiWze8UE37HC74,15457
34
+ autocoder/common/code_auto_generate_editblock.py,sha256=W2M9cmbrOQAzYvJUpopTbFlv-h82Tt4ZAHXh80b4hWg,17038
35
+ autocoder/common/code_auto_generate_strict_diff.py,sha256=PrnJIbC_wfcdjcKYfT2pdyHcPh8ZXVSuYnWxCk7sMH4,13983
35
36
  autocoder/common/code_auto_merge.py,sha256=1tiKrram8GCCuPYrNvHFbr-Tic-f84Y8H13fDTdcg6c,7142
36
37
  autocoder/common/code_auto_merge_diff.py,sha256=5SI6ggklJ0QDHvsS0cpNXFuIkFRQxp1i08k6iwWbPJc,15242
37
38
  autocoder/common/code_auto_merge_editblock.py,sha256=l6yEiZqXyIlUNIIPXvkHOnLCIInXR78TzSjF-jtJkkg,17035
38
39
  autocoder/common/code_auto_merge_strict_diff.py,sha256=ABYOTDUQYA4Bn4BwT1Rw812y49cHW3UH_JSpM9uJ6ig,9399
39
40
  autocoder/common/code_modification_ranker.py,sha256=DFlbwgdg8GK47zVcvfZSzkyniEKmTVLTOWejjcVIgaw,5121
40
- autocoder/common/command_completer.py,sha256=Eo3V9fRIIX74YdLxz1pZ3wAqdXhFirWoQ0zXkB5R198,8999
41
+ autocoder/common/command_completer.py,sha256=iFTrKlSYeF6YCm9VMwRiuLVOMx7V-zWSJMGyHwOrgrg,9121
41
42
  autocoder/common/command_generator.py,sha256=v4LmU7sO-P7jEZIXCWHUC6P-vT7AvBi_x_PTwCqBAE8,1323
42
43
  autocoder/common/command_templates.py,sha256=3G-pCNbL6iHbnkG6v1JZpbIK3Mc9d373_RYGmCcDPMY,8548
43
44
  autocoder/common/const.py,sha256=eTjhjh4Aj4CUzviJ81jaf3Y5cwqsLATySn2wJxaS6RQ,2911
@@ -45,9 +46,9 @@ autocoder/common/git_utils.py,sha256=btK45sxvfm4tX3fBRNUPRZoGQuZuOEQrWSAwLy1yoLw
45
46
  autocoder/common/image_to_page.py,sha256=O0cNO_vHHUP-fP4GXiVojShmNqkPnZXeIyiY1MRLpKg,13936
46
47
  autocoder/common/interpreter.py,sha256=62-dIakOunYB4yjmX8SHC0Gdy2h8NtxdgbpdqRZJ5vk,2833
47
48
  autocoder/common/llm_rerank.py,sha256=FbvtCzaR661Mt2wn0qsuiEL1Y3puD6jeIJS4zg_e7Bs,3260
48
- autocoder/common/mcp_hub.py,sha256=hefmPRwgG0xiJej06-9ygy5yVawgWbWhuARVAPd3ZGU,11779
49
- autocoder/common/mcp_server.py,sha256=QZRr3visIiRUcCfQqVuGngPh9yYlAq0BWijHLpbFohY,2674
50
- autocoder/common/mcp_tools.py,sha256=dun9P9txSxSvDe7z3EUXTsV8Gx1RXMAJpsSPqI-D4ok,29546
49
+ autocoder/common/mcp_hub.py,sha256=bs9ZEsuN3CKs37tLKADtBA_Mm-TcYkFkXsUmGS2hljQ,13721
50
+ autocoder/common/mcp_server.py,sha256=OgR6dceCqTnO2g-64eQ6TOqKucjt-kkG4IXlrp37XN8,11368
51
+ autocoder/common/mcp_tools.py,sha256=KsLvRrB6pvmebqd-lDaSH6IBJR0AIxWRE-dtCEG_w9k,12485
51
52
  autocoder/common/recall_validation.py,sha256=Avt9Q9dX3kG6Pf2zsdlOHmsjd-OeSj7U1PFBDp_Cve0,1700
52
53
  autocoder/common/screenshots.py,sha256=_gA-z1HxGjPShBrtgkdideq58MG6rqFB2qMUJKjrycs,3769
53
54
  autocoder/common/search.py,sha256=245iPFgWhMldoUK3CqCP89ltaxZiNPK73evoG6Fp1h8,16518
@@ -55,6 +56,8 @@ autocoder/common/search_replace.py,sha256=GphFkc57Hb673CAwmbiocqTbw8vrV7TrZxtOhD
55
56
  autocoder/common/sys_prompt.py,sha256=JlexfjZt554faqbgkCmzOJqYUzDHfbnxly5ugFfHfEE,26403
56
57
  autocoder/common/text.py,sha256=KGRQq314GHBmY4MWG8ossRoQi1_DTotvhxchpn78c-k,1003
57
58
  autocoder/common/types.py,sha256=oQKPE1TG0O7DQQLaBSMp6CP3Bbvg0K8elFdidlV52Lg,631
59
+ autocoder/common/mcp_servers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
+ autocoder/common/mcp_servers/mcp_server_perplexity.py,sha256=OV_orQ6NsVnLxGt0SkVt9wsxu-nw7gOuwa4hgtdastI,5546
58
61
  autocoder/data/tokenizer.json,sha256=QfO_ZCE9qMAS2L0IcaWKH99wRj6PCPEQ3bsQgvUp9mk,4607451
59
62
  autocoder/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
63
  autocoder/db/store.py,sha256=tFT66bP2ZKIqZip-uhLkHRSLaaOAUUDZfozJwcqix3c,1908
@@ -67,7 +70,7 @@ autocoder/dispacher/actions/plugins/action_regex_project.py,sha256=ZvU3hsxFPSZTf
67
70
  autocoder/dispacher/actions/plugins/action_translate.py,sha256=nVAtRSQpdGNmZxg1R_9zXG3AuTv3CHf2v7ODgj8u65c,7727
68
71
  autocoder/index/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
69
72
  autocoder/index/for_command.py,sha256=zfbvQnhHjsAqBc4Ce1kMGIu0jPEk_rtH7fntg89_4z0,3092
70
- autocoder/index/index.py,sha256=X9pAQj-rZar-OhYrx3BGAxNfM1hObz_SG3bQdz5efQg,34145
73
+ autocoder/index/index.py,sha256=URE9-CPWBYKiH2i6RvGF5jDzkENM9eWxaOW1em7cVHw,34129
71
74
  autocoder/index/symbols_utils.py,sha256=CjcjUVajmJZB75Ty3a7kMv1BZphrm-tIBAdOJv6uo-0,2037
72
75
  autocoder/pyproject/__init__.py,sha256=7ZuIxD2QBYIwhjmpva8eL2knorKo03yNqUhSyecpt7c,14448
73
76
  autocoder/rag/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -85,7 +88,7 @@ autocoder/rag/simple_rag.py,sha256=I902EUqOK1WM0Y2WFd7RzDJYofElvTZNLVCBtX5A9rc,1
85
88
  autocoder/rag/token_checker.py,sha256=jc76x6KWmvVxds6W8juZfQGaoErudc2HenG3sNQfSLs,2819
86
89
  autocoder/rag/token_counter.py,sha256=C-Lwc4oIjJpZDEqp9WLHGOe6hb4yhrdJpMtkrtp_1qc,2125
87
90
  autocoder/rag/token_limiter.py,sha256=dtIxCtHswZ2ut-XKbx8_SiWyv-xqnR1WAIcmh6f8Ktw,11137
88
- autocoder/rag/types.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
91
+ autocoder/rag/types.py,sha256=WPgLpUTwbk0BAikyDOc0NOEwV5k73myF38zWdOuYdC4,2499
89
92
  autocoder/rag/utils.py,sha256=x5L8gskxUUGkVEP5K-0C-iYntE84asuDXOCqdzdNUoA,4956
90
93
  autocoder/rag/variable_holder.py,sha256=PFvBjFcR7-fNDD4Vcsc8CpH2Te057vcpwJMxtrfUgKI,75
91
94
  autocoder/rag/cache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -119,9 +122,9 @@ autocoder/utils/request_event_queue.py,sha256=r3lo5qGsB1dIjzVQ05dnr0z_9Z3zOkBdP1
119
122
  autocoder/utils/request_queue.py,sha256=nwp6PMtgTCiuwJI24p8OLNZjUiprC-TsefQrhMI-yPE,3889
120
123
  autocoder/utils/rest.py,sha256=HawagAap3wMIDROGhY1730zSZrJR_EycODAA5qOj83c,8807
121
124
  autocoder/utils/tests.py,sha256=BqphrwyycGAvs-5mhH8pKtMZdObwhFtJ5MC_ZAOiLq8,1340
122
- auto_coder-0.1.215.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
123
- auto_coder-0.1.215.dist-info/METADATA,sha256=sgkxUJzd2NzfmzIMHy0IUQ26s5voTnyDMNuU6ri6OrU,2590
124
- auto_coder-0.1.215.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
125
- auto_coder-0.1.215.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
126
- auto_coder-0.1.215.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
127
- auto_coder-0.1.215.dist-info/RECORD,,
125
+ auto_coder-0.1.217.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
126
+ auto_coder-0.1.217.dist-info/METADATA,sha256=6WH7sysYNE75MfeufxCCQCJGmjI6oq5iRwQ_3mdDeH0,2615
127
+ auto_coder-0.1.217.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
128
+ auto_coder-0.1.217.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
129
+ auto_coder-0.1.217.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
130
+ auto_coder-0.1.217.dist-info/RECORD,,
@@ -19,10 +19,12 @@ from rich.table import Table
19
19
  import os
20
20
  from loguru import logger
21
21
  import asyncio
22
+ from datetime import datetime
22
23
 
23
24
  from autocoder.rag.document_retriever import process_file_local
24
25
  import pkg_resources
25
26
  from autocoder.rag.token_counter import TokenCounter
27
+ from autocoder.rag.types import RAGServiceInfo
26
28
 
27
29
  if platform.system() == "Windows":
28
30
  from colorama import init
@@ -501,6 +503,20 @@ def main(input_args: Optional[List[str]] = None):
501
503
  rag = RAGFactory.get_rag(llm=llm, args=auto_coder_args, path="")
502
504
 
503
505
  llm_wrapper = LLWrapper(llm=llm, rag=rag)
506
+ # Save service info
507
+ service_info = RAGServiceInfo(
508
+ host=server_args.host or "127.0.0.1",
509
+ port=server_args.port,
510
+ model=args.model,
511
+ _pid=os.getpid(),
512
+ _timestamp=datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
513
+ args={k: v for k, v in vars(args).items() if not k.startswith("_")}
514
+ )
515
+ try:
516
+ service_info.save()
517
+ except Exception as e:
518
+ logger.warning(f"Failed to save service info: {str(e)}")
519
+
504
520
  serve(llm=llm_wrapper, args=server_args)
505
521
  elif args.command == "build_hybrid_index":
506
522
  if not args.quick: